﻿@model IEnumerable<mock_ehr_lib.Model.Summary.ProblemItem>


<table>
<tr>
<td>
<table>
    <tr>
        <th>
            Description
        </th>
        <th>
            StartDate
        </th>
        <th>
            EndDate
        </th>
        <th>
            Status
        </th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Description)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.StartDate)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.EndDate)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Status)
        </td>
    </tr>
}

</table>


</td>
<td>
<div class="tool">
</div>
</td>
</tr>
</table>



<script language="javascript" type="text/javascript">
    $(function () {
        $("#immunizations .infobutton").click(function () {
            var frame = $("<iframe>");
            var anchor = $(this);
            frame.attr("src", anchor.attr("data-infobutton-url"));
            frame.ready(function () {
                $("#immunizations .tool").html(frame);
            });
        });
    });
</script>